#pragma once
#include <string>
#include <vector>
#include "Item.h"
#include "Weapon.h"
#include "Armor.h"
using namespace std;

class Entity
{
	protected:
		string name;
		int health;
		int healthModifier;
		int baseHealth;
		vector<Weapon*> weapons;
		int equippedWeapon;
		int equipedArmor;

	public:
		Entity(void);
		Entity(string, Weapon*, Armor*);
		string GetName(void) const { return name; }
		void SetName(string n) {name = n;}
		int GetHealth(void) const {return health;}
		void SetHealth(int h){health = h;}
		int GetHealthModifier(void) const {return healthModifier;}
		void SetHealthModifier(int m){healthModifier = m;}
		void GiveItem(Weapon newWeapon);
		int GetBaseHealth(void) const {return baseHealth;}
		~Entity(void);

		Armor armorEquiped;
		
		Armor armors[2];
		Item items[5];
};
